import 'package:dk_flutter_base/dk_core.dart';
import 'package:dk_flutter_base/dk_ui.dart';
import 'package:dk_flutter_module_sale/config/route/widget_route.dart';
import 'package:dk_flutter_module_sale/r.dart';

@ARoute(url: WidgetRouteBoot.PAGE_NOT_FIND)
class NotFindPage extends StatelessWidget {
  final String page;

  NotFindPage(BoostRouteOption option) : this.page = (option?.params["id"]),
        super();

  NotFindPage.newInstance(this.page);

  @override
  Widget build(BuildContext context) {
    return SafeArea(
      child: Scaffold(
        appBar: DkAppBar(DKAppBarParams.withBackNoMenu(context,
            titleContent: "页面丢失")),
        body: Center(
          child: Column(
            children: <Widget>[
              Image.asset(R.imagesPortalPageErrorPng),
              Text('未找到页面，请升级!\n(我的/版本信息/检查更新)\n$page',textAlign: TextAlign.center,),
            ],
          ),
        ),
      ),
    );
  }
}
